﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Rekonsult.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="EHTWebsiteProject.IndexLogin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            height: 35px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Contentmain" runat="server">
    <div class="header-center">
        Logg inn
    </div>
    <p class="paragraph">
        Logg inn Vennligst skriv inn Ditt brukernavn og passord.
        <span class="link">
        <asp:HyperLink ID="RegisterHyperLink" runat="server" NavigateUrl="../Registrer.html"
            EnableViewState="false">Registrer</asp:HyperLink>
        </span>
        &nbsp;hvis du ikke har en konto.
    </p>
    <p class="paragraph">
        <span class="link">
        <asp:HyperLink ID="ResetPasswordHyperLink" runat="server" NavigateUrl="../TilbakestillePassord.html"
            EnableViewState="false">Tilbakestille Passord</asp:HyperLink>
        </span>
        &nbsp;Hvis du glemmer passordet.
    </p>
    <div class="content-center">
        <table cellspacing="0" cellpadding="0" class="data-table">
            <tr>
                <td colspan="2" style="text-align:left;font-size:11px;">
                    <span class="failureNotification">
                        <asp:Literal ID="ltrMessage" runat="server"></asp:Literal>
                    </span>
                    <asp:ValidationSummary ID="RegisterUserValidationSummary" runat="server" CssClass="failureNotification"
                        ValidationGroup="RegisterUserValidationGroup" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbEmail" runat="server">E-post</asp:Label>:
                </td>
                <th>
                    <asp:TextBox ID="txtEmail" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rEmail" runat="server" ControlToValidate="txtEmail"
                        CssClass="failureNotification" ErrorMessage="Email is required." ToolTip="Email is required."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revEmail" runat="server" ValidationGroup="RegisterUserValidationGroup"
                        ControlToValidate="txtEmail" CssClass="failureNotification" ErrorMessage="Email not valid"
                        ToolTip="Email not valid" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
                </th>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbPassword" runat="server">Passord</asp:Label>:
                </td>
                <th>
                    <asp:TextBox ID="txtPassword" runat="server" CssClass="textEntry" 
                        TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rPassword" runat="server" ControlToValidate="txtPassword"
                        CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Password is required."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
            </tr>
            <tr>
                <td class="style1">
                </td>
                <th class="style1">
                    <asp:CheckBox ID="ckRememberMe" Text="Hold meg innlogget" runat="server" />
                </th>
            </tr>
            <tr>
                <td></td>
                <th> 
                    <asp:Button ID="btnLogin" runat="server" Text="Logg inn" 
                        ValidationGroup="RegisterUserValidationGroup" CssClass="Button"
                        onclick="btnLogin_Click" />
                </th>
            </tr>
        </table>
    </div>
</asp:Content>
